package com.ssy.lingxi.report.api.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 新增订单VO
 * @author 伍将
 * @date 2020/12/8
 * @version 2.0.0
 */
public class AddOrderVO {

    /**
     * 供应商会员id
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 供应商会员角色id
     */
    @NotNull(message = "角色id要大于0")
    @Positive(message = "角色id要大于0")
    private Long roleId;

    /**
     * 采购商会员id
     */
    @NotNull(message = "采购商会员id要大于0")
    @Positive(message = "采购商会员id要大于0")
    private Long buyerMemberId;

    /**
     * 采购商会员角色id
     */
    @NotNull(message = "采购商角色id要大于0")
    @Positive(message = "采购商角色id要大于0")
    private Long buyerRoleId;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额不能为空")
    Double amount = 0D;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Double getAmount() {
        return amount;
    }

    public Long getBuyerMemberId() {
        return buyerMemberId;
    }

    public void setBuyerMemberId(Long buyerMemberId) {
        this.buyerMemberId = buyerMemberId;
    }

    public Long getBuyerRoleId() {
        return buyerRoleId;
    }

    public void setBuyerRoleId(Long buyerRoleId) {
        this.buyerRoleId = buyerRoleId;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }
}
